package com.yoomiito.app.model.config;

import android.os.Parcel;
import android.os.Parcelable;

public class ConfigInfo implements Parcelable {
    private AddressConfigInfo address;
    private ReTaoBaoUrlConfigInfo re_tao_url;
    private ReYmConfigInfo re_ym_url;
    private InviteUrlInfo invite_url;

    public AddressConfigInfo getAddress() {
        return address;
    }

    public void setAddress(AddressConfigInfo address) {
        this.address = address;
    }

    public ReTaoBaoUrlConfigInfo getRe_tao_url() {
        return re_tao_url;
    }

    public void setRe_tao_url(ReTaoBaoUrlConfigInfo re_tao_url) {
        this.re_tao_url = re_tao_url;
    }

    public ReYmConfigInfo getRe_ym_url() {
        return re_ym_url;
    }

    public void setRe_ym_url(ReYmConfigInfo re_ym_url) {
        this.re_ym_url = re_ym_url;
    }

    public InviteUrlInfo getInvite_url() {
        return invite_url;
    }

    public void setInvite_url(InviteUrlInfo invite_url) {
        this.invite_url = invite_url;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.address, flags);
        dest.writeParcelable(this.re_tao_url, flags);
        dest.writeParcelable(this.re_ym_url, flags);
        dest.writeParcelable(this.invite_url, flags);
    }

    public ConfigInfo() {
    }

    protected ConfigInfo(Parcel in) {
        this.address = in.readParcelable(AddressConfigInfo.class.getClassLoader());
        this.re_tao_url = in.readParcelable(ReTaoBaoUrlConfigInfo.class.getClassLoader());
        this.re_ym_url = in.readParcelable(ReYmConfigInfo.class.getClassLoader());
        this.invite_url = in.readParcelable(InviteUrlInfo.class.getClassLoader());
    }

    public static final Creator<ConfigInfo> CREATOR = new Creator<ConfigInfo>() {
        @Override
        public ConfigInfo createFromParcel(Parcel source) {
            return new ConfigInfo(source);
        }

        @Override
        public ConfigInfo[] newArray(int size) {
            return new ConfigInfo[size];
        }
    };
}
